package com.liqi.frame.comm.enums;

import lombok.Getter;

/**
 * 返回码
 * @author liqi on 2019/9/6 0006.
 */
@Getter
public enum ResultEnum {
    /** 正确 */
    SUCCESS(0, "正确"),
    /** 错误 */
    FAILURE(1, "错误"),
    /** 用户名或密码错误 */
    USERNAME_PASSWORD_INCORRECT(111, "用户名或密码错误"),
    /** 登录过期 */
    LOGON_EXPIRATION(112, "登录过期"),
    ;

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
